package com.jr.service.impl;

import com.jr.entry.ShoppingTrolley;
import com.jr.mapper.ShoppingTrolleyMapper;
import com.jr.service.ShoppingTrolleyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class ShoppingTrolleyServiceImpl implements ShoppingTrolleyService {
    @Autowired
    private ShoppingTrolleyMapper shoppingTrolleyMapper;

    @Override
    public int insertSam(ShoppingTrolley shoppingTrolley) {

        return  shoppingTrolleyMapper.insertSam(shoppingTrolley);
    }

    @Override
    public int deleteSam(ShoppingTrolley shoppingTrolley) {
        return 0;
    }

    @Override
    public ArrayList<ShoppingTrolley> selectSam(ShoppingTrolley shoppingTrolley) {
        return null;
    }
}
